package com.ruoyi.system.projectrecords.service.impl;

import com.ruoyi.system.projectrecords.domain.TProRecord;
import com.ruoyi.system.projectrecords.mapper.TProRecordMapper;
import com.ruoyi.system.projectrecords.service.ITProRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-15
 */
@Service
public class TProRecordServiceImpl implements ITProRecordService
{
    @Autowired
    private TProRecordMapper tProRecordMapper;

    /**
     * 查询项目记录
     *
     * @param id 项目记录主键
     * @return 项目记录
     */
    @Override
    public TProRecord selectTProRecordById(Long id)
    {
        return tProRecordMapper.selectTProRecordById(id);
    }

    /**
     * 查询项目记录列表
     *
     * @param tProRecord 项目记录
     * @return 项目记录
     */
    @Override
    public List<TProRecord> selectTProRecordList(TProRecord tProRecord)
    {
        return tProRecordMapper.selectTProRecordList(tProRecord);
    }

    /**
     * 新增项目记录
     *
     * @param tProRecord 项目记录
     * @return 结果
     */
    @Override
    public int insertTProRecord(TProRecord tProRecord)
    {
        return tProRecordMapper.insertTProRecord(tProRecord);
    }

    /**
     * 修改项目记录
     *
     * @param tProRecord 项目记录
     * @return 结果
     */
    @Override
    public int updateTProRecord(TProRecord tProRecord)
    {
        return tProRecordMapper.updateTProRecord(tProRecord);
    }

    /**
     * 批量删除项目记录
     *
     * @param ids 需要删除的项目记录主键
     * @return 结果
     */
    @Override
    public int deleteTProRecordByIds(Long[] ids)
    {
        return tProRecordMapper.deleteTProRecordByIds(ids);
    }

    /**
     * 删除项目记录信息
     *
     * @param id 项目记录主键
     * @return 结果
     */
    @Override
    public int deleteTProRecordById(Long id)
    {
        return tProRecordMapper.deleteTProRecordById(id);
    }
}
